package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.RoutinePathologySample;
import com.zhijian.medical.entity.vo.request.RoutinePathologySampleSearchVo;
import com.zhijian.medical.entity.vo.response.RoutinePathologySampleVo;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface RoutinePathologySampleMapper {
    int deleteByPrimaryKey(Long id);

    int insert(RoutinePathologySample record);

    int insertSelective(RoutinePathologySample record);

    RoutinePathologySample selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(RoutinePathologySample record);

    int updateByPrimaryKey(RoutinePathologySample record);

    /**
     * 查询总数
     *
     * @param routinePathologySampleSearchVo
     * @return
     */
    int count(RoutinePathologySampleSearchVo routinePathologySampleSearchVo);

    /**
     * 查询列表
     *
     * @param routinePathologySampleSearchVo
     * @return
     */
    List<RoutinePathologySampleVo> selectList(RoutinePathologySampleSearchVo routinePathologySampleSearchVo);

    /**
     * 查询单个
     *
     * @param routinePathologySampleSearchVo
     * @return
     */
    RoutinePathologySampleVo selectOne(RoutinePathologySampleSearchVo routinePathologySampleSearchVo);

    /**
     * 根据ID查询vo
     *
     * @param id
     * @return
     */
    RoutinePathologySampleVo selectVoById(Long id);

    /**
     * 根据常规病理号查询
     *
     * @param conventionPathologyNumber
     * @return
     */
    RoutinePathologySampleVo selectVoByConventionPathologyNumber(String conventionPathologyNumber);

    /**
     * 批量删除
     *
     * @param idList
     * @return
     */
    void deleteByIdList(@Param("idList") List<Long> idList);

    /**
     * 动态删除
     *
     * @param routinePathologySampleSearchVo
     * @return
     */
    void deleteByCondition(RoutinePathologySampleSearchVo routinePathologySampleSearchVo);

    /**
     * 批量新增
     *
     * @param entities
     * @return
     */
    int insertBatch(@Param("entities") List<RoutinePathologySample> entities);
}